module.exports = app => {
  const { STRING, INTEGER, JSON } = app.Sequelize

  const Modal = app.model.define('financings', {
    fullName: {
      type: STRING(32),
      defaultValue: ''
    },
    email: {
      type: STRING(32),
      defaultValue: ''
    },
    phone: {
      type: STRING(32),
      defaultValue: ''
    },
    form: {
      type: JSON,
      allowNull: false,
    }
  })

  return Modal
}
